<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\User;

class UsersController extends Controller
{
    public function index(){
        $users=[
            '0'=>[
            'first_name'=>'Tianrui',
            'last_name'=>'Chen',
            'location'=>'nanjing'
            ],
            '1'=>[
            'first_name'=>'Zitong',
            'last_name'=>'Mao',
            'location'=>'tokyo'
            ]

        ];
        return view('admin.users.index',compact('users'));
        }
    public function create(){
        return view('admin.users.create');
    }
    public function store(Request $request){
        User::create($request->all());
        return 'success';
        return $request->all();
        
    }
}
